<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加学生信息</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    <script src="/static/bootstrap/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">学生信息管理</a>
    </div>
    <div>
        <ul class="nav navbar-nav">
            <li ><a href="/home">首页</a></li>
            <li ><a href="user">班主任</a></li>
            <li><a href="graph">图形区</a></li>
            <li class="active"><a href="#">添加学生</a></li>
        </ul>
    </div>
    <div class="navbar-right">
        <ul class="nav navbar-nav">
            <li><a href="#">当前班主任：</a></li>
            <li><a href="#">{{request.session.name}}</a></li>
            <li><a href="/home/outlogin">注销</a></li>
        </ul>
    </div>
    </div>
</nav>

<div class="panel panel-success">
    <div class="panel-heading">
        <h1 class="panel-title text-center">输入学生信息</h1>
    </div>
    <div class="panel-body">
        <form action="add" method="post" class="form-horizontal" role="form">
            {% csrf_token %}
            <div class="form-group">
                <label for="" class="col-sm-offset-4 col-md-1 text-right">姓名</label>
                <div class="col-md-2">
                    <input type="text" name="name" value="" class="form-control">
                </div>
            </div>
                <div class="form-group">
                <label for="" class="col-sm-offset-4 col-md-1 text-right">年龄</label>
                <div class="col-md-2">
                    <input type="number" name="age" value="" class="form-control">
                </div>
            </div>
                <div class="form-group">
                <label for="" class="col-sm-offset-4 col-md-1 text-right">所在班级</label>
                <div class="col-md-2">
                    <input type="text" name="grade" value="" class="form-control">
                </div>
            </div>
                <div class="form-group">
                <label for="" class="col-sm-offset-4 col-md-1 text-right">性  别</label>
                <div class="col-md-2">
                    <input type="text" name="sex" value="" class="form-control">
                </div>
            </div>
                <div class="form-group">
                 <input type="submit" class="col-sm-offset-5 col-md-2 btn btn-info" value="提交">
            </div>
        </form>
    </div>
    <div class="panel-footer text-right">
        版权所有&copy;踏雪无痕
    </div>
</div>


</body>
</html>